﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Qianli.DirSir.Model;
using Qianli.DirSir.DAL;

namespace Qianli.DirSir.BLL
{
    public class FORMDHLUPSInfoBLL
    {
        FORMDHLUPSInfoDAL dal = new FORMDHLUPSInfoDAL();
        /// <summary>
        /// 显示快递匹配
        /// </summary>
        /// <returns></returns>
        public List<FORMDHLUPSInfo> FORMDHLUPSInfoShow(int did)
        {
            return dal.FORMDHLUPSInfoShow(did);
        }
        /// <summary>
        /// 快递匹配添加
        /// </summary>
        /// <param name="f"></param>
        /// <returns></returns>
        public int FORMDHLUPSInfoAdd(int rid, string oid)
        {
            return dal.FORMDHLUPSInfoAdd(rid,oid);
        }
        /// <summary>
        /// 快递匹配删除
        /// </summary>
        /// <param name="fdid"></param>
        /// <returns></returns>
        public int FORMDHLUPSInfodDelete(int fdid)
        {
            return dal.FORMDHLUPSInfodDelete(fdid);
        }
        /// <summary>
        /// 获取快递名称
        /// </summary>
        /// <returns></returns>
        public List<DHLUPSFEDEXEMSInfo> kuaidiname()
        {
            return dal.kuaidiname();
        }
        /// <summary>
        /// 根据id获取城市
        /// </summary>
        /// <param name="pid"></param>
        /// <returns></returns>
        public List<CityInfo> GetidCity(int pid)
        {
            return dal.GetidCity(pid);
        }
        /// <summary>
        /// 根据快递编号获取城市编号
        /// </summary>
        /// <param name="rid"></param>
        /// <returns></returns>
        public List<FORMDHLUPSInfo> FORMDHLUPSInfoGetid(int rid)
        {
            return dal.FORMDHLUPSInfoGetid(rid);
        }
        /// <summary>
        /// 根据快递id删除所有的有关城市
        /// </summary>
        /// <param name="did"></param>
        /// <returns></returns>
        public int kuaidisahnchu(int did)
        {
            return dal.kuaidisahnchu(did);
        }
    }
}
